package com.example.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.dao.OrderDao;
import com.example.pojo.Order;
import com.example.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderDao orderDao;

    @Override
    public Page<Order> findAll(Page<Order> page) {

        return orderDao.selectPage(page,null);
    }

    @Override
    public void del(Long id) {
         Order order=new Order();
         orderDao.deleteById(order.getId());
    }
}
